package com.whosly.strategy.annotation;

import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

/**
 * 策略生效注解
 *
 * @Author yueny09 <deep_blue_yang@126.com>
 * @Date 2019-09-03 11:18
 */
@Deprecated
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Documented
@Import(StrategyConfigurationSelector.class)
public @interface EnableStrategy {
    /**
     * 扫描包路径，默认扫描全部
     *
     * for example, {@code @StrategyScan("org.my.pkg")}
     */
    String[] value() default {};

    /**
     * 性能损耗记录
     */
    boolean performance() default false;
}
